package com.anhry.app.safety.util;

import javax.annotation.Resource;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Component;

import com.anhry.app.safety.manage.oa.service.CallService;
import com.anhry.app.safety.manage.zczb.service.ZczbService;


@Component
public class AnnotationQuartz {

	private static Logger logger = Logger.getLogger(AnnotationQuartz.class);
	@Resource
	private CallService callService;
	
	@Resource
	private ZczbService zczbService;
	
	/**
	 * 触发提醒
	 *
	 */
	public void sendCall() {
		try {
			callService.SendCall();
		} catch (Exception e) {
			e.printStackTrace();
			logger.error("AnnotationQuartz中SendCall()方法：" + e.getMessage());
		}
	}
	
	/**
	 * 触发自查自报功能
	 *
	 */
	public void zczbUp() {
		try {
			zczbService.zczbUp();
		} catch (Exception e) {
			e.printStackTrace();
			logger.error("AnnotationQuartz中zczbUp()方法：" + e.getMessage());
		}
	}
	
	
	
}
